package io.sqrtqiezi.practise.spark.sort.secondary;

import scala.Tuple2;

import java.io.Serializable;
import java.util.Comparator;

public class TupleComparator
        implements Comparator<Tuple2<Integer, Integer>>, Serializable {
    @Override
    public int compare(Tuple2<Integer, Integer> t1, Tuple2<Integer, Integer> t2) {
        return t1._1.compareTo(t2._1);
    }
}
